package cn.jorian.framework.bean;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Data
@Document(indexName = "songs")
public class SongBean implements Serializable {

    private static final long serialVersionUID = 42L;

    @Id
    @Field(type= FieldType.Keyword)
    private String id;

    /**
     * 歌曲名
     */
    @Field(type= FieldType.Text)
    private String name;

    /**
     * 描述信息
     */
    @Field(type= FieldType.Text)
    private String note;

    /**
     * 歌手
     */
    @Field(type= FieldType.Text)
    private String singer;

}
